HMCharacteristic PRO
HMCharacteristic is a single readable / writable / observable value on an HMService. It exposes its current value, allowed range/format via metadata, and an event-subscription API.
Properties
Read & write
writeValue rejects with an Error when the value violates metadata.minimumValue / metadata.maximumValue / metadata.validValues / metadata.maxLength.
Subscribe to value changes
HomeKit notification delivery is best-effort. For mission-critical observation, also poll
readValue()periodically.
